#pragma once

#include<iostream>
#include <memory>
#include<sys/epoll.h>
#include "InetAddr.hpp"
#include "Socket.hpp"
#include "Log.hpp"
#include "Connection.hpp"

using namespace LogModule;
class IOServer:public Connection
{
public:
    IOServer(int sockfd)
    {
        SetSockfd(sockfd);
        SetEvents(EPOLLIN|EPOLLET);
    }
    virtual void _Recver() override
    {
        LOG(LogLevel::DEBUG)<<"hahaha, I am Recver";
    }
    virtual void _Sender() override
    {}
    virtual void _Excepter() override
    {}
    ~IOServer()
    {}
};